<%--
  Created by jianzhang11.
  Date: 2016/8/24 10:48
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx_path" value="<%=request.getContextPath() %>" />
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title> 合肥丰业办公家居网 - 案例展示 </title>
    <meta name="description" content="合肥丰业办公家居">
    <meta name="keywords" content="合肥家具,丰业,合肥办公家居">
    <link href="${ctx_path}/resources/front/css/css.css" type="text/css" rel="stylesheet"/>
    <script type=text/javascript src="${ctx_path}/resources/front/js/jquery.js"></script>
    <script type=text/javascript src="${ctx_path}/resources/front/js/sl-1.js"></script>


</head>
<body>
<!--引入头文件 START-->
<%@include file="nav.jsp"%>
<!--引入头文件 END-->

<div style="height:316px; width:100%;background:url(${ctx_path}/resources/front/images/banner6.jpg) no-repeat center top;"></div>

<div class="zhutibg">
    <div class="zhuti">
        <div class="left">
            <div class="left_top">
                案例展示 /<span>Case </span></div>
            <div class="left_dh">
                <ul>

                </ul>
            </div>
            <div class="left_top">联系我们 <span>Contact Us</span></div>
            <img src="${ctx_path}/resources/front/images/lxtop.gif" height="111"/>
            <div class="left_lx">
                <strong><span style="font-family: Simsun;">合肥丰业办公家居有限公司</span></strong>
                <br />
                联系人：詹先生/石女士<br />
                联系电话：18756970317/13355605371<br />
                地址：合肥包河区工业园<br />
            </div>
        </div>
        <div class="righta">
            <div class="right_dh">
                <div class="right_dh_l">当前位置：<a href='${ctx_path}/index'>首页</a> > <span>案例展示</span></div>
            </div>
            <div class="right_conp">
                <c:forEach var="tCase" items="${page.records}">
                    <div class="propic">
                        <div class="proshow"><a href="${ctx_path}/case-detail/${tCase.id}"><img src="${ctx_path}/${tCase.filepath}" alt=" ${tCase.name}" width="225" height="180"></a></div>
                        <div class="proname">${tCase.name}</div>
                    </div>
                </c:forEach>
                <div class="clear"></div>
                <script type='text/javascript'>
                    function go(pageNum){
                        var f = document.getElementById('testForm');
                        var url;
                        if(f.action.indexOf('?')>=0){
                            url = f.action + '&cpage='
                        }else{
                            url = f.action + '?cpage='
                        }
                        f.action = url + pageNum + '&size='+${page.size};
                        f.submit();
                    }
                </script>
                <div class="yema">
                    <div class="page_side">
                        <%--<a style="width:85px">共${page.total}条 ${page.size}条/页</a><br/>--%>
                        <c:if test="${page.hasPrepage}">
                            <a href='javascript:go(${page.cpage-1})' class='page-next'>&lt; 上一页</a>
                        </c:if>
                        <c:forEach var="pageNum" begin="1" end="${page.tpage}">
                            <a href='javascript:go(${pageNum})' class=${page.cpage eq pageNum ? "on_click" :''}>${pageNum}</a>
                        </c:forEach>
                        <c:if test="${page.hasNextpage}">
                            <a href='javascript:go(${page.cpage+1})' class='page-next'>下一页 &gt;</a>
                        </c:if>
                    </div>
                </div>
                <form id="testForm" action="${ctx_path}/cases" method="post"></form>

            </div>


        </div>
    </div>
</div>

<%@include file="footer.jsp"%>

</body>
</html>
